<?php
/*
	插件初始化
*/
namespace jy_renwu;
defined('BY_JYA') or exit('error');
function init($plugin){
	$plugin->datatypes=array(
		'head'=>'头像',
		'nickname'=>'昵称',
		'qr'=>'二维码',
		'img'=>'图片',
		'title'=>'商品名称',
		'thumb'=>'商品图片',
		'marketprice'=>'商品现价',
		'productprice'=>'商品原价',
		'text'=>'自定义文字',
	);
	$plugin->datapushs=array(
		'head'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'head',
						'width' => '80',
						'height' => '80',
		),
		'qr'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'qr',
						'width' => '80',
						'height' => '80',
		),
		'nickname'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'nickname',
						'width' => '120',
						'height' => '26',
		),
		'img'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'img',
						'width' => '200',
						'height' => '200',
		),
		'title'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'title',
						'width' => '226',
						'height' => '50',
		),
		'thumb'=>array(
						'left' => '0',
						'top' => '0',
						'type' => 'thumb',
						'width' => '316',
						'height' => '316',
		),
		'marketprice'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'marketprice',
						'width' => '120',
						'height' => '26',
		),
		'productprice'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'productprice',
						'width' => '120',
						'height' => '26',
		),
		'text'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'text',
						'width' => '260',
						'height' => '26',
						'value' => '自定义文字',
		),
	);
	$plugin->goodsdatademo=array(
		array(
						'left' => '110',
						'top' => '410',
						'type' => 'qr',
						'width' => '100',
						'height' => '100',
		),
		array(
						'left' => '0',
						'top' => '0',
						'type' => 'thumb',
						'width' => '320',
						'height' => '320',
		),
		array(
						'left' => '10',
						'top' => '360',
						'type' => 'title',
						'width' => '300',
						'height' => '30',
						'size' => '12',
						'bold' => '1',
		),
		array(
						'left' => '8',
						'top' => '330',
						'type' => 'marketprice',
						'width' => '180',
						'height' => '36',
						'size' => '18',
						'bold' => '1',
						'color'=>'#e1251b',
		),
		array(
						'left' => '116',
						'top' => '510',
						'type' => 'text',
						'width' => '100',
						'height' => '25',
						'size' => '9',
						'value' => '长按或扫描查看',
						'color'=>'#ddd',
		),
	);
	$plugin->apidatademo=array(
		array(
						'left' => '110',
						'top' => '385',
						'type' => 'qr',
						'width' => '100',
						'height' => '100',
		),
		array(
						'left' => '116',
						'top' => '490',
						'type' => 'text',
						'width' => '100',
						'height' => '25',
						'size' => '9',
						'value' => '长按或扫描查看',
						'color'=>'#ddd',
		),
	);
}